/*
 * QTreeViewAdapter.h  0.4.0 / Nov 30, 2010
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
#ifndef QTREEVIEWADAPTER_H
#define QTREEVIEWADAPTER_H

#include "Cute4jSwing.h"

// QTreeViewAdapter Class. -----------------------------------------------------

class TreeDelegate;

/*!
 * \brief QTreeView Adapter.
 *
 * \author Slobodan Vrkacevic
 * \version 0.4.0
 */
class CUTE4J_EXPORT QTreeViewAdapter : public QTreeView
{
  Q_OBJECT
public:
  QTreeViewAdapter(TreeDelegate *delegate);
protected slots:
  void adjustSize(const QModelIndex & index);
protected:
  virtual bool event(QEvent *e);
protected:
  TreeDelegate *m_delegate;
};

#endif // QTREEVIEWADAPTER_H
